<?php
/**
 * Created by PhpStorm.
 * User: Argon
 * Date: 2017/1/18
 * Time: 17:10
 */

namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class IndexController extends Controller
{
    public function index(){
        return view('welcome');
    }
    public function login(){
        session(['admin'=>1]);
        return "login";
    }

    public function logout(){
        session(['admin'=>null]);
        var_dump(session('admin'));
        echo 'logout';
    }
}